package com.gitee.neuray.security.par;

import com.gitee.neuray.security.common.config.DruidConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author: zhhongyu
 * @description:
 * @since: Create in 16:49 2020/8/21
 */
@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableScheduling
@EnableTransactionManagement
@MapperScan({"com.gitee.neuray.security.par.*.mapper"})
@EnableFeignClients("com.gitee.neuray.security.par.*.feign")
@Import(DruidConfig.class)
public class ParBootstrap {
    public static void main(String[] args) {
        new SpringApplicationBuilder(ParBootstrap.class).web(true).run(args);
    }
}
